public class LoveInterest {
    private String name;
    private int happinessLevel;

    public LoveInterest(String name) {
        this.name = name;
        this.happinessLevel = 50; // 初始幸福度为50
    }

    public String getName() {
        return name;
    }

    public int getHappinessLevel() {
        return happinessLevel;
    }

    public void increaseHappiness(int amount) {
        happinessLevel += amount;
        if (happinessLevel > 100) {
            happinessLevel = 100;
        }
    }

    public void decreaseHappiness(int amount) {
        happinessLevel -= amount;
        if (happinessLevel < 0) {
            happinessLevel = 0;
        }
    }

    public void updateStatus() {
        if (happinessLevel >= 75) {
            System.out.println(name + " 喜欢上你了啦！");
        } else if (happinessLevel >= 50) {
            System.out.println(name + " 对你有点意思了.");
        } else if (happinessLevel >= 25) {
            System.out.println(name + " 对你不是很感兴趣");
        } else {
            System.out.println(name + " 对你有点意见甚至厌恶");
        }
    }
}
